package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserDao {
    public User findByUsername(String username);
    public void add(User user);
    public void setUserAndRole(Map<String, Integer> map);
    public Page<User> pageQuery(String queryString);
    public List<Role> findAll();
    public void edit(User user);
    public void deleteAssociationByRoleId(Integer id);
    public User findById(Integer id);
    public Integer[] findroleIdsByUserId(Integer id);
    public void delete(Integer id);
    public void deleteUserByRoleIds(Integer id);
}
